<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <th:block th:include="commons/css::css">head</th:block>
</head>

<body class="flat-blue">
<i style="display: none;" id="_manager_url" url="/suit/comment/manager"></i>
<div class="app-container">
    <div class="row content-container">
        <th:block th:include="commons/nav_head::nav">head</th:block>
        <th:block th:include="commons/side::side">side</th:block>
        <!-- Main Content -->
        <div class="container-fluid">
            <div class="side-body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                评论信息
                            </div>
                            <div class="panel-body form-group table-bordered">
                                <table class="table table-bordered">
                                    <tr>
                                        <td style="width: 10%;">会员昵称</td>
                                        <td style="width: 20%;" th:text="${suitComment.alias}">会员昵称</td>
                                        <td style="width: 10%;">用户类型</td>
                                        <td style="width: 20%;" th:text="${suitComment.type}==1?'个人用户':'商户'"></td>
                                    </tr>

                                    <tr>
                                        <td th:text="${suitComment.type==1}?'头像':'商标'"></td>
                                        <td>
                                            <img th:src="${suitComment.headImg}" style="width: 80px; height: 80px;">
                                        </td>
                                        <td>图片</td>
                                        <td>
                                            <img th:src="${suitComment.imgUrl}" style="width: 80px; height: 80px;">
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>状态</td>
                                        <td th:switch="${suitComment.status}">
                                            <th:block th:case="1">
                                                正常
                                            </th:block>
                                            <th:block th:case="0">
                                                已删除
                                            </th:block>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>评论内容</td>
                                        <td colspan="3">
                                            <th:block th:text="${suitComment.content}"></th:block>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td colspan="4" class="text-center">
                                            <button type="button" class="btn btn-info"
                                                    onclick="history.go(-1);">
                                                <span class="glyphicon glyphicon-backward"> 返回</span>
                                            </button>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<th:block th:include="commons/js::js">Javascript Libs</th:block>
</html>